package chat.model;

import java.rmi.*;
import java.rmi.server.*;

/**
 * The purpose of this class is to provide an implementation for ChatServer RMI which clients then connect and 
 * check if it is the active server
 * @param InetAddress - the user's address
 * @param username - the username identifying the user.
 * @since October 2012
 * @author Tung Nguyen, Trung V Hoang, Rob Bernard, Justin Semmel 
 */
public class ChatServerRmiImpl extends UnicastRemoteObject implements ChatServerRmi {
	private boolean activate;
	
	public ChatServerRmiImpl () throws RemoteException
	{
		activate = false;	
	}
	
	public void setActivate(boolean value)
	{
		activate = value;
	}

	public boolean getActivate()
	{
		return activate;
	}

	public boolean isActive()
	{
		return true;
	}

}